# Create your views here.
from django.http import JsonResponse
from django.views import View
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.views import APIView


def auth(request):
    return JsonResponse({"status": True, "message": "success"})


@api_view(['GET'])
def login(request):
    return Response({"status": True, "message": "success"})


class LoginView(APIView):
    def get(self, request):
        return Response({"status": True, "message": "success"})


class UserView(View):
    def get(self, request):
        return JsonResponse({"status": True, "message": "get"})

    def post(self, request):
        return JsonResponse({"status": True, "message": "post"})

    def put(self, request):
        return JsonResponse({"status": True, "message": "put"})

    def delete(self, request):
        return JsonResponse({"status": True, "message": "delete"})
